<div id="mws-container" class="clearfix">
  <div class="container">
    <div class="mws-panel grid_8">
      <div class="mws-panel-header"> <span class="mws-i-24 i-table-1" style="width:100%;">Styles- Management
      
		</span> <span class="linktop">  <?php echo $html->link('Add Style', array('action'=>'admin_adddepartment'));?>
   
      
      </span> </div>
      <div class="mws-panel-body">
        <div class="dataTables_wrapper">
          <table class="mws-datatable-fn mws-table">
            <thead>
              <tr>
                <th class="sorting_asc" rowspan="1" colspan="1" style="width: 141px;">Style Name</th>
                <th class="sorting" rowspan="1" colspan="1" style="width: 254px;">Style Category</th>
                <th class="sorting" rowspan="1" colspan="1" style="width: 150px;">Style Status</th>
                <th class="sorting" rowspan="1" colspan="1" style="width: 91px;">Options</th>
              </tr>
            </thead>
            <?php if(isset($Departments) and ($Departments)): ?>
            <tbody>
            <?php 
			       foreach($Departments as $Cat){
			?>
              <tr class="gradeA odd">
                <td class=" sorting_1"><?php echo $Cat['Department']['name']; ?></td>
                <td class="center">
                <?php if(isset($Cat['Department']['Cat_name'])){echo $Cat['Department']['Cat_name'];}?>
                </td>
                <td class="center">
				<?php if(isset($Cat['Department']['status']) and ($Cat['Department']['status']==1)){echo "Active";}else{ echo "Deactive";} ?></td>
                <td class="center">
				<?php 
                    echo $html->link("Edit", 
                    array('action'=>'admin_adddepartment',"Department", 
                    base64_encode($Cat['Department']['id'])), array('escape'=>false));  
                ?>
				<?php
					echo $html->link('Delete',
					array('controller'=>'Setups', 'action' => 'admin_delete_by_id',
					'Department',$Cat['Department']['id'],'admin_departments'), array('escape' => false,'id'=>'alink'), 'Are you sure?');
                ?>
                </td>
              </tr>
              <?php } ?>
            </tbody>
            <?php endif; ?>
          </table>
          <div class="dataTables_info"></div>
          <div class="dataTables_paginate paging_full_numbers">
          </div>
        </div>
      </div>
    </div>
  </div>
</div>
